<?php

use yii\db\Migration;

class m161022_055633_create_province extends Migration
{
    public function up()
    {
        $this->createTable('kd_province',
            [
                'sf_id'=> $this->primaryKey()->comment('省份ID'),
                'sf_mingcheng'=> $this->string(20)->notNull()->comment('省份名称'),
            ]);
    }

    public function down()
    {
        $this->dropTable('kd_province');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
